import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'

// import { createPersistedState } from 'vuex-electron' // 记得括号中要引入createSharedMutations
import modules from './modules'

Vue.use(Vuex)

export default new Vuex.Store({
  modules,
  getters,
  plugins: [
    // createPersistedState()
    // createSharedMutations() // 主进程和渲染进程直接共享store，请使用这里
  ],
  strict: process.env.NODE_ENV !== 'production'
})
